package com.zuoye.day04;

import com.chixing.day04_oop.B;
import com.chixing.day05_oop.Account;

public class AccountTest {
    public static void main(String[] args) {
        //信用账户
        CreditAccount creditAccount1 = new CreditAccount();
        creditAccount1.setBankId(1);
        creditAccount1.setRootName("小姜");
        creditAccount1.setRootPhone("12345654");
        creditAccount1.setBankPassword(31222);
        creditAccount1.setRootIdCard(12347685647L);
        creditAccount1.setEmail("132342@163.com");
        creditAccount1.setAccBalance(1233);
        creditAccount1.setMaxOverdraft(70000);
        creditAccount1.setCredit("90%");

        //取钱
        System.out.println(creditAccount1.withdraw(80000));



        //储蓄账户
        SavingAccount savingAccount1 = new SavingAccount();
        savingAccount1.setBankId(11);
        savingAccount1.setRootName("早柚");
        savingAccount1.setRootPhone("15765432");
        savingAccount1.setBankPassword(12564342);
        savingAccount1.setRootIdCard(645236767L);
        savingAccount1.setEmail("123457654@163.com");
        savingAccount1.setAccBalance(6743);


        Bank bank = new Bank();

       // Account acc1 = bank.registAccount();




    }
}
